package com.jadesoft.stock.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FundDaily {
	private Long id;
	/**
	 * 代码
	 */
	private String code; 
	
	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 单位净值(元)
	 */
	private Double unitNetWorth;
	
	/**
	 *  涨跌(元)
	 */
	private Double changeValue;
	
	/**
	 * 增长率(%)
	 */
	private Double grewRate;
	
	/**
	 * 累计净值(元)
	 */
	private Double acmltNetValue;
	
	/**
	 *  净值日期
	 */
	private String netValueDate;
	
	/**
	 * 市场价格(元)
	 */
	private Double price;
	
	/**
	 *  折价率(%)
	 */
	private Double discountRate;
	
	/**
	 * 基金经理
	 */
	private String fundManager;
	
	/**
	 *数据 获取的日期
	 */
	private Date achieveDate;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getUnitNetWorth() {
		return unitNetWorth;
	}

	public void setUnitNetWorth(Double unitNetWorth) {
		this.unitNetWorth = unitNetWorth;
	}



	public Double getAcmltNetValue() {
		return acmltNetValue;
	}

	public void setAcmltNetValue(Double acmltNetValue) {
		this.acmltNetValue = acmltNetValue;
	}

	public String getNetValueDate() {
		return netValueDate;
	}

	public void setNetValueDate(String netValueDate) {
		this.netValueDate = netValueDate;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getDiscountRate() {
		return discountRate;
	}

	public void setDiscountRate(Double discountRate) {
		this.discountRate = discountRate;
	}

	public Date getAchieveDate() {
		return achieveDate;
	}

	public void setAchieveDate(Date achieveDate) {
		this.achieveDate = achieveDate;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public static void main(String[] args) throws Exception {
		String d = "2011-05-04 15:03:05";
		SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		System.out.println(f.format(f.parse(d)));
	}

	public Double getChangeValue() {
		return changeValue;
	}

	public void setChangeValue(Double changeValue) {
		this.changeValue = changeValue;
	}

	public Double getGrewRate() {
		return grewRate;
	}

	public void setGrewRate(Double grewRate) {
		this.grewRate = grewRate;
	}

	public String getFundManager() {
		return fundManager;
	}

	public void setFundManager(String fundManager) {
		this.fundManager = fundManager;
	}

	public FundDaily(String code, String name, Double unitNetWorth,
			Double changeValue, Double grewRate, Double acmltNetValue,
			String netValueDate, Double price, Double discountRate,
			String fundManager, Date achieveDate) {
		super();
		this.code = code;
		this.name = name;
		this.unitNetWorth = unitNetWorth;
		this.changeValue = changeValue;
		this.grewRate = grewRate;
		this.acmltNetValue = acmltNetValue;
		this.netValueDate = netValueDate;
		this.price = price;
		this.discountRate = discountRate;
		this.fundManager = fundManager;
		this.achieveDate = achieveDate;
	}

	public FundDaily() {
		super();
	}
	
}
